package cn.wolfcode.service;

import cn.wolfcode.domain.Consumption;
import cn.wolfcode.qo.ConsumptionQueryObject;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IConsumptionService {

    /**
     * 无预约单的添加
     * @param consumption
     */
    void save(Consumption consumption);

    void delete(Long id);

    void update(Consumption consumption);

    Consumption get(Long id);

    List<Consumption> listAll();

    // 分页查询方法
    PageInfo<Consumption> query(ConsumptionQueryObject qo);


    /**
     * 有预约的结算单添加
     * @param aid  预约单的id
     */
    Long save(Long aid);
}